<?php

namespace app\merchant\model;

use think\Model;

class TpBorrower extends Model
{
    //设置当前模型对应的完整数据表名称
    protected $table = 'tp_borrower';

    public static function updateInsert($arr_where,$arr_date){
        $model_borrower =  self::where($arr_where)->find();
        if ($model_borrower){
            $res = self::where($arr_where)->update($arr_date);
        }else{
            $res = self::insert($arr_date);
        }
        return $res;
    }
}
